package com.wangxiaonan.wxwork.quartz;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.Date;

/**
 * @Author: wangxiaonan
 * @Date: 2018/8/29
 **/
public class TestMessageJob implements Job {
    private static final Logger logger = LoggerFactory.getLogger(TestMessageJob.class);

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        logger.info("[TestMessageJob] {} >>>>>>>>>>>>>>>>>>> {}", Thread.currentThread().getId(), new Date());
    }
}
